Optimal. Leaf size=56 \[ -\frac {\tan ^{-1}\left (\frac {\sqrt {\frac {2}{11}} (2 x+1)}{\sqrt {x^2+x+5}}\right )}{\sqrt {22}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {x^2+x+5}}{\sqrt {2}}\right )}{\sqrt {2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 56, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {1025, 982, 204, 1024, 206} \[ -\frac {\tan ^{-1}\left (\frac {\sqrt {\frac {2}{11}} (2 x+1)}{\sqrt {x^2+x+5}}\right )}{\sqrt {22}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {x^2+x+5}}{\sqrt {2}}\right )}{\sqrt {2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 206
Rule 982
Rule 1024
Rule 1025
Rubi steps
\begin {align*} \int \frac {x}{\left (3+x+x^2\right ) \sqrt {5+x+x^2}} \, dx &=-\left (\frac {1}{2} \int \frac {1}{\left (3+x+x^2\right ) \sqrt {5+x+x^2}} \, dx\right )+\frac {1}{2} \int \frac {1+2 x}{\left (3+x+x^2\right ) \sqrt {5+x+x^2}} \, dx\\ &=\operatorname {Subst}\left (\int \frac {1}{-11-2 x^2} \, dx,x,\frac {1+2 x}{\sqrt {5+x+x^2}}\right )-\operatorname {Subst}\left (\int \frac {1}{2-x^2} \, dx,x,\sqrt {5+x+x^2}\right )\\ &=-\frac {\tan ^{-1}\left (\frac {\sqrt {\frac {2}{11}} (1+2 x)}{\sqrt {5+x+x^2}}\right )}{\sqrt {22}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {5+x+x^2}}{\sqrt {2}}\right )}{\sqrt {2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.06, size = 114, normalized size = 2.04 \[ \frac {-\left (\left (\sqrt {11}-i\right ) \tanh ^{-1}\left (\frac {-2 i \sqrt {11} x-i \sqrt {11}+19}{4 \sqrt {2} \sqrt {x^2+x+5}}\right )\right )-\left (\sqrt {11}+i\right ) \tanh ^{-1}\left (\frac {2 i \sqrt {11} x+i \sqrt {11}+19}{4 \sqrt {2} \sqrt {x^2+x+5}}\right )}{2 \sqrt {22}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 1.10, size = 307, normalized size = 5.48 \[ -\frac {1}{33} \, \sqrt {11} \sqrt {6} \sqrt {3} \arctan \left (\frac {2}{33} \, \sqrt {11} \sqrt {3} \sqrt {\sqrt {6} \sqrt {3} {\left (2 \, x + 1\right )} + 6 \, x^{2} - \sqrt {x^{2} + x + 5} {\left (2 \, \sqrt {6} \sqrt {3} + 6 \, x + 3\right )} + 6 \, x + 30} + \frac {1}{33} \, \sqrt {11} {\left (2 \, \sqrt {6} \sqrt {3} + 6 \, x + 3\right )} - \frac {2}{11} \, \sqrt {11} \sqrt {x^{2} + x + 5}\right ) + \frac {1}{33} \, \sqrt {11} \sqrt {6} \sqrt {3} \arctan \left (-\frac {1}{33} \, \sqrt {11} {\left (2 \, \sqrt {6} \sqrt {3} - 6 \, x - 3\right )} + \frac {1}{33} \, \sqrt {11} \sqrt {-12 \, \sqrt {6} \sqrt {3} {\left (2 \, x + 1\right )} + 72 \, x^{2} + 12 \, \sqrt {x^{2} + x + 5} {\left (2 \, \sqrt {6} \sqrt {3} - 6 \, x - 3\right )} + 72 \, x + 360} - \frac {2}{11} \, \sqrt {11} \sqrt {x^{2} + x + 5}\right ) + \frac {1}{12} \, \sqrt {6} \sqrt {3} \log \left (12 \, \sqrt {6} \sqrt {3} {\left (2 \, x + 1\right )} + 72 \, x^{2} - 12 \, \sqrt {x^{2} + x + 5} {\left (2 \, \sqrt {6} \sqrt {3} + 6 \, x + 3\right )} + 72 \, x + 360\right ) - \frac {1}{12} \, \sqrt {6} \sqrt {3} \log \left (-12 \, \sqrt {6} \sqrt {3} {\left (2 \, x + 1\right )} + 72 \, x^{2} + 12 \, \sqrt {x^{2} + x + 5} {\left (2 \, \sqrt {6} \sqrt {3} - 6 \, x - 3\right )} + 72 \, x + 360\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.32, size = 133, normalized size = 2.38 \[ \frac {1}{22} \, \sqrt {11} \sqrt {2} \arctan \left (-\frac {1}{11} \, \sqrt {11} {\left (2 \, x + 2 \, \sqrt {2} - 2 \, \sqrt {x^{2} + x + 5} + 1\right )}\right ) - \frac {1}{22} \, \sqrt {11} \sqrt {2} \arctan \left (-\frac {1}{11} \, \sqrt {11} {\left (2 \, x - 2 \, \sqrt {2} - 2 \, \sqrt {x^{2} + x + 5} + 1\right )}\right ) + \frac {1}{4} \, \sqrt {2} \log \left (324 \, {\left (2 \, x + 2 \, \sqrt {2} - 2 \, \sqrt {x^{2} + x + 5} + 1\right )}^{2} + 3564\right ) - \frac {1}{4} \, \sqrt {2} \log \left (324 \, {\left (2 \, x - 2 \, \sqrt {2} - 2 \, \sqrt {x^{2} + x + 5} + 1\right )}^{2} + 3564\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 45, normalized size = 0.80 \[ -\frac {\sqrt {2}\, \arctanh \left (\frac {\sqrt {x^{2}+x +5}\, \sqrt {2}}{2}\right )}{2}-\frac {\sqrt {22}\, \arctan \left (\frac {\left (2 x +1\right ) \sqrt {22}}{11 \sqrt {x^{2}+x +5}}\right )}{22} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {x}{\sqrt {x^{2} + x + 5} {\left (x^{2} + x + 3\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {x}{\left (x^2+x+3\right )\,\sqrt {x^2+x+5}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {x}{\left (x^{2} + x + 3\right ) \sqrt {x^{2} + x + 5}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________